#coding=utf8

import os
DEBUG = True

class DjangoSettings:
    DATABASE_ENGINE = 'mysql'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
    DATABASE_NAME = 'former'             # Or path to database file if using sqlite3.
    DATABASE_USER = 'root'             # Not used with sqlite3.
    DATABASE_PASSWORD = 'se'         # Not used with sqlite3.
    DATABASE_HOST = '127.0.0.1'             # Set to empty string for localhost. Not used with sqlite3.
    DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.

COMMON_CACHE = ["127.0.0.1:11212"]
COMMON_CACHE_CMD = 'memcached -d -m 2560 -p 11212 -u root'
OTHER_CACHE = ["127.0.0.1:11213"]
OTHER_CACHE_CMD = 'memcached -d -m 512 -p 11213 -u root'

class PathSettings:
    if os.name == 'nt':
        WORKING_FOLDER = "d:/former_working"
    else:
        WORKING_FOLDER = "/home/former_working"
    EXCEPTION = WORKING_FOLDER + "/exception"

    if not os.path.exists(WORKING_FOLDER):
        os.makedirs(WORKING_FOLDER)
    if not os.path.exists(EXCEPTION):
        os.makedirs(EXCEPTION)

